package com.chang.controller;

import com.chang.common.bean.ResultBean;
import com.chang.common.controller.BaseController;
import com.chang.service.CustomerInquiryDetailService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @program: erp-api
 * @description:
 * @author: chang
 * @create: 2025-03-05 10h
 **/
@Service
public class CustomerInquiryDetailController extends BaseController {
    @Autowired
    CustomerInquiryDetailService detailService;

    @ApiOperation("询价明细详情")
    @GetMapping("/inquiryDetail")
    public ResultBean get(@RequestParam(required = true) int id) {
        Map map = detailService.getDetail(id);
        return success("询价明细详情", map);
    }
}
